package com.cuit.pojo;

public class DoctorOrder {
    private int max_order;
    private int d_id;
    private String[] d_sitting_time;
    private int[] d_week;

    public DoctorOrder() {
    }

    public DoctorOrder(int max_order, int d_id, String[] d_sitting_time, int[] d_week) {
        this.max_order = max_order;
        this.d_id = d_id;
        this.d_sitting_time = d_sitting_time;
        this.d_week = d_week;
    }

    public DoctorOrder( int d_id,  int[] d_week) {
        this.d_id = d_id;
        this.d_week = d_week;
    }

    public DoctorOrder( int d_id) {
        this.d_id = d_id;
    }

    public DoctorOrder(int max_order, int d_id,  int[] d_week) {
        this.max_order = max_order;
        this.d_id = d_id;
        this.d_week = d_week;
    }

    public DoctorOrder( int d_id, String[] d_sitting_time, int[] d_week) {
        this.d_id = d_id;
        this.d_sitting_time = d_sitting_time;
        this.d_week = d_week;
    }

    public DoctorOrder(String[] sitting_time, int[] d_week, String order_number) {
        this.d_sitting_time=sitting_time;
        this.d_week=d_week;
        if(order_number!="") {
            this.max_order = Integer.parseInt(order_number);
        }else{
            this.max_order=0;
        }
    }

    public void setMax_order(int max_order) {
        this.max_order = max_order;
    }

    public void setD_id(int d_id) {
        this.d_id = d_id;
    }

    public void setD_sitting_time(String[] d_sitting_time) {
        this.d_sitting_time = d_sitting_time;
    }

    public void setD_week(int[] d_week) {
        this.d_week = d_week;
    }

    public int getMax_order() {
        return max_order;
    }

    public int getD_id() {
        return d_id;
    }

    public String[] getD_sitting_time() {
        return d_sitting_time;
    }

    public int[] getD_week() {
        return d_week;
    }
}
